<?php
header("content-type:text/html;charset=utf-8");
$arr = require_once 'protected/config/system.php';
$domain = $arr['domain'];

$str=<<<eod
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>创云商城APP下载</title>
	<link type="image/x-icon" href="favicon.ico" rel="icon">	
		<script type="text/javascript">
			function isWeiXin()
			{
			    var ua = window.navigator.userAgent.toLowerCase();
			    if(ua.match(/MicroMessenger/i) == 'micromessenger'){
			        return true;
			    }else{
			        return false;
			    }
			}
			function show()
			{
				if(isWeiXin())
				{
					document.body.innerHTML="<img src='zhishi.jpg' width='100%' height='100%'/>";
				}
				else
				{
					document.location.href="{$domain}/index.php?con=simple&act=download";
				}
			}
		</script>
</head>
<body onload="show()" style="margin:0px;left:0px;top:0px;">
<!--
<div id="div1">
</div>
-->
</body>
</html>
eod;
echo $str;

?>